package cn.com.org.controller.site;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CenterController {

	@Autowired
	private HttpServletRequest request;
	@Autowired
	private RedisTemplate rredisTemplate;

	@RequestMapping("/about")
	public String about(Map<String, Object> map,
			HttpServletResponse response) throws Exception {
		List<String> list=new ArrayList<String>();
		list.add("aa");
		list.add("bb");
		list.add("cc");
		list.add("dd");
		map.put("list", list);
		map.put("username", "用户名");
		return "center/about";
	}

	@RequestMapping("/connect")
	public String connect(Map<String, Object> mapdata,
			HttpServletResponse response) throws Exception {
		//mapdata.put("username", "用户名");
		return "center/connect";
	}

	@RequestMapping("/join")
	public String join(Map<String, Object> mapdata,
			HttpServletResponse response) throws Exception {
		mapdata.put("username", "用户名");
		return "center/join";
	}

	@RequestMapping("/advise")
	public String advise(Map<String, Object> mapdata,
			HttpServletResponse response) throws Exception {
		mapdata.put("username", "用户名");
		return "center/advise";
	}
	@RequestMapping("/declaration")
	public String declaration(Map<String, Object> mapdata,
			HttpServletResponse response) throws Exception {
		mapdata.put("username", "用户名");
		return "center/declaration";
	}
	@RequestMapping("/agent")
	public String agent(Map<String, Object> mapdata,
			HttpServletResponse response) throws Exception {
		mapdata.put("username", "用户名");
		return "center/agent";
	}

}
